package co.yixiang.mall.biz.txlcn.controller;


import co.yixiang.mall.biz.txlcn.service.TradeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yshop
 */
@RestController
@RequestMapping
@RequiredArgsConstructor
public class TestController {

    private final TradeService tradeService;



    /**
     * 测试分布式事务
     */
    @GetMapping("tx/test")
    public void txTest() {
        this.tradeService.tradeTest();
    }


}
